-- GENERATED SPELL FOR [Defias Inmate] --


function spell0_1708(pUnit, Event) --@Battle Stance,Self--
pUnit:FullCastSpellOnTarget(7165,pUnit)
pUnit:RegisterEvent('Sorts_1708', 540, 1)
end

function spell1_1708(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(6547,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1708', 15000, 1)
end

function Sorts_1708(pUnit, Event)
local choix_sorts_1708 = math.random(0, 1)
if choix_sorts_1708 == 0 then
pUnit:RegisterEvent('spell0_1708', 1, 1)
end
if choix_sorts_1708 == 1 then
pUnit:RegisterEvent('spell1_1708', 1, 1)
end
end

function mob1708_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1708', math.random(1500, 3000), 1)
end

function mob1708_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1708_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1708_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1708, 1, 'mob1708_Action')
RegisterUnitEvent(1708, 2, 'mob1708_Leave')
RegisterUnitEvent(1708, 3, 'mob1708_Kill')
RegisterUnitEvent(1708, 4, 'mob1708_Die')
